package com.example.administrator.basedemos.activity;

import android.content.Intent;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;

import com.example.administrator.basedemos.R;

/**
 * 创建者     ZCL
 * 创建时间   2018/4/16 16:35
 * 描述	      ${TODO}
 * <p>
 * 更新者     $Author$
 * 更新时间   $Date$
 * 更新描述   ${TODO}
 */

public class SVGActivity extends AppCompatActivity{
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.svg);

        TextView back = (TextView) this.findViewById(R.id.main_back);
        TextView cart = (TextView) this.findViewById(R.id.main_cart);
        TextView catory = (TextView) this.findViewById(R.id.main_catrgory);

        Typeface typeface = Typeface.createFromAsset(getAssets(), "iconfont.ttf");
        back.setTypeface(typeface);
        cart.setTypeface(typeface);
        catory.setTypeface(typeface);

        cart.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(SVGActivity.this, IconicsActivity.class);
                startActivity(intent);
            }
        });
    }
}
